(function($){
	
	function ajaxGet(url, data, dataType, callback){
		callback = callback || {};
		$.ajax({
			cache : true,
			type : "GET",
			url : url,
			data : data,
			jsonpCallback: "fj",
			dataType: dataType,
			error : function(request) {
				if(callback.error) callback.error.call(this, request);
			},
			success : function(data) {if(callback.success) callback.success.call(this, data);}
		});
	}
	
	
	
	function whoisGet(){
		var url = "";
		window.whoisCallBack = function(record){
			alert(record);
		}
		ajaxGet("http://whois.pconline.com.cn/ipJson.jsp", {}, "jsonp", {
			success: function(data){alert(data);}
		});
	}
	
	function ip138Get(){
		var url = "http://ip.taobao.com/instructions.php";
		$.get(url, function(data){
			alert(data);
		})
	}
	
	$(function(){
		whoisGet();
	});
})(jQuery);